package com.anxin.registerManagement.bean.persist;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("班级类")
public class ClassRoom extends CommonData {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("班级id")
    private Integer id;

    @NotNull(message = "班级年级不能为空")
    @ApiModelProperty("年级，如2018")
    private Integer classYear;

    //添加的时候自动输入，不能修改
    @ApiModelProperty("班级编号，如1、2、3")
    private Integer classCode;

    @NotNull(message = "所属专业不能为空")
    @ApiModelProperty("专业id")
    private Integer professionId;

    @NotNull(message = "班主任不能为空")
    @ApiModelProperty("班主任id")
    private Integer classTeacherId;

}
